package com.hui.common.component;

import org.springframework.jms.annotation.JmsListener;
import org.springframework.stereotype.Component;

import java.util.Map;

@Component
public class Consumer {
    @JmsListener(destination = "queue_usermsg")
    public void readMsg(String text) {
        System.out.println("接收到消息：" + text);
    }

}